import { Component } from 'react'

class Son extends Component {
  render() {
    const { title, Data } = this.props

    return (
      <div>
        {title === 'admin' ? (
          <div>
            {Object.keys(Data).map((k) => {
              return (
                <div key={k}>
                  {k}-{Data[k]}
                </div>
              )
            })}
          </div>
        ) : (
          '没有权限'
        )}
      </div>
    )
  }
}
export default Son
